Tidy Functions
PHP Manual

tidy_setopt

(PECL tidy >= 0.5.2)

tidy_setoptUpdates the configuration settings for the specified tidy document

Descripción

bool tidy_setopt ( string $option , mixed $value )

tidy_setopt() updates the specified option with a new value .

Lista de parámetros

option

The tidy option name. A list of available configuration options may be found at: » http://tidy.sourceforge.net/docs/quickref.html.

value

The tidy option name.

Valores retornados

Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.

Ejemplos

Example #1 tidy_setopt() example

<?php
$html 
'<p>test</i>';

$tidy tidy_parse_string($html);

tidy_setopt('indent'FALSE);
?>

Notes

Note: Esta funcion esta disponible solamente con Tidy 1.0. Se dejo de utilizar en Tidy 2.0 y por lo tanto no se encuentra dispobible actualmente.

Ver también


Tidy Functions
PHP Manual